import request from '@/api/index';

/**
 * 申请职位
 */
export const applyJob = (jobId) => {
    // 创建URLSearchParams对象
    const params = new URLSearchParams();
    params.append('jobId', jobId);

    // 发送POST请求
    return request.post('/apply/application', params.toString(), {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded' // 覆盖默认的Content-Type
        }
    });
};